const app = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    district: '',
    province: '',
    latitude: '',
    longitude: '',
    cit: '',
    now: ''                         //各个变量的数据都是now的不同的部分，分别调用
  },


  /**
     * 生命周期函数--监听页面加载
     */
  onLoad: function (options) {

  },


  onShow: function () {
    //天气信息获取
    var tmp = wx.getStorageSync('tmp');
    var city = wx.getStorageSync('city');
    var district = wx.getStorageSync('district');
    var that = this;

    wx.showLoading({
      title: '加载中',
    })
    setTimeout(function () {
      wx.hideLoading()
      that.setData({
        now: tmp,
        cit: city,
        district: district,
      });
    }, 1000)



  }

})
